#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.65])
AC_INIT(lgb-gp-sna, 0.1.1 , dream.liuguobiao@gmail.com)
AM_INIT_AUTOMAKE(lgb-gp-sna, 0.1.1 , dream.liuguobiao@gmail.com)
AC_CONFIG_SRCDIR([include/mainController.h])
AC_CONFIG_HEADERS([config.h])

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC

# Checks for libraries.
AC_PROG_RANLIB

# FIXME: Replace `main' with a function in `-lpthread':
AC_CHECK_LIB([pthread], [main])

# Checks for header files.

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL

# Checks for library functions.
PKG_CHECK_MODULES(GTK, gtk+-2.0 > 2.2.0,
  [LIBS="$LIBS $GTK_LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS"],
  AC_MSG_ERROR(Cannot find GTK+))
PKG_CHECK_MODULES(GOO, goocanvas,
  [LIBS="$LIBS $GOO_LIBS" CFLAGS="$CFLAGS $GOO_CFLAGS"],
  AC_MSG_ERROR(Cannot find GOO))

#AC_CONFIG_FILES([Makefile
#                 include/Makefile
#                 src/controller/Makefile
#                 src/model/Makefile
#                 src/view/Makefile
#                 ])
AC_OUTPUT([Makefile
           include/Makefile
           src/Makefile
	   res/Makefile
	   res/conf/Makefile
	   res/msg/Makefile
	   res/skin/Makefile
	   res/skin/background/Makefile
	   res/skin/default/Makefile
           ])

echo ""
echo "Configuration summary for $PACKAGE_NAME $PACKAGE_VERSION:"
echo "  * Installation prefix: $prefix"
echo "  * Now do \"make\" to build this package !"
echo ""